home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 47.7z
/
BS1 part 47
/
ImageMaster RT v1.50b (1994)(Black Belt Systems)(Disk 6 of 7)[HD].7z
/
ImageMaster RT v1.50b (1994)(Black Belt Systems)(Disk 6 of 7)[HD].adf
/
piarc.lzh.parta
/
neo.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-03-17
|
2KB
|
77 lines
/*
* NEO.rexx - NEOChrome (Atari) file loader
* Loads NEOChrome files
* *.NEO
*
* Written by: Pete Patterson
* Last Update: Sept. 3, 1993
* Revision: 1.00
* For: Black Belt Systems image processing series IM, IM F/c, and IP.
* ---------------------------------------------------------------------------
* Revision: 1.00 - see ReadMe file for details on changes to this level
*
* 1.00 03 Sept. 1993 (BC)
*/
/*
* open rexxsupport.library -- needed for some functions
*/
if ~show('L',"rexxsupport.library") then do
if addlib('rexxsupport.library',0,-30,0) then do
/* everything's ok */
end;
else do
say 'We Have A Library Problem, Unable To Load "rexxsupport.library"';
say 'Cannot operate without this library - sorry!';
exit 10;
end;
end;
/*
* This code attempts to read a file called "picmdpath" from REXX:
* If it can't find it, the script will assume that the commands
* associated with this PI Module are in "c:". If the file exists,
* the script will look in the path that is specified in the file.
* If you create this file, you MUST put a complete, correct path
* in it; if the commands are in a sub-directory, you have to put
* the trailing slash on the path (like, device:dir/).
*
*/
cmdpath = 'c:';
if open(fhandle,'rexx:picmdpath','read') then /* open the file */
do
cmdpath = readln(fhandle);
call close(fhandle); /* close the file */
end
prtnme = 'IM_Port';
address(prtnme);
path = 'ram:';
name = '';
ext = '';
options results;
'filerequest "'||path||'","'||name||'","'||ext||'","Load NEOChrome"';
neofile = result;
options;
if neofile = 'FR_CANCELLED' then do
address(prtnme);
'imtofront';
exit 0;
end;
address(prtnme);
options results;
'jackin';
jackadr = result;
options;
'autoredraw 0';
address command cmdpath||'neo '||jackadr||' 0 '||neofile;
'autoredraw 1';
exit 0;
end